package service;

import domain.Product;

import java.util.List;

/**
 * Created by guo on 2017/10/31.
 */
public interface Service {
    List<Product> findAll();

    int delete(int pid);

    List<Product> search(String pname);

    int add(Product product);

    Product findById(int pid);

    int update(Product product);
}
